package net.vidmar.tvspored;

import java.util.Date;

import android.text.format.DateFormat;

public class MyDate extends Object {
	Date Date;
	
	public MyDate() {
 
	}
	
	public MyDate(Date date)
	{
		Date = date;
	}
	
	@Override
	public String toString() { 
		return (String) DateFormat.format("EEE, d. MMMM yyyy", Date);
	}
	
	@Override
	public boolean equals(Object o) { 
		if (o instanceof MyDate)
			return Date.equals(((MyDate)o).Date);
		else if (o instanceof Date)
			return Date.equals(o);
		else
			return super.equals(o);
	}
}
